package com.rc.saas.tenant.vo.gun;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rc.saas.tenant.model.elec.ElecGun;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: yang
 * @Date: 2022/6/10 23:20
 */
public class ElecGunMonitorVo extends ElecGun {

    @ExcelProperty(value = "电桩编号",index = 10)
    private String pileNo;      //桩编号

    @ExcelProperty(value = "直流充电电压",index = 11)
    private String elec; // 直流充电电压 精确到小数点后一位；待机置零

    @ExcelProperty(value = "直流充电电流",index = 12)
    private String voltage; //直流充电电流 精确到小数点后一位；待机置零

    @ExcelProperty(value = "充电功率",index = 13)
    private String chargePower; //充电功率

    @ExcelProperty(value = "BMS需求电流",index = 14)
    private String demandElec;  //BMS需求电流  待机置零

    @ExcelProperty(value = "BMS需求电压",index = 15)
    private String demandVoltage; //BMS需求电压 待机置零

    @ExcelProperty(value = "温度",index = 16)
    private String temperature;//温度

    @ExcelProperty(value = "电池温度",index = 17)
    private String bmsTemperature;//电池温度

    @ExcelProperty(value = "金额",index = 18)
    private BigDecimal totalMoney; //金额

    @ExcelProperty(value = "占用时间",index = 19)
    private String occupyTime; //占用时间

    @ExcelProperty(value = "充满时间",index = 20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String orderTime; //充满时间

    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderUpdateTime = new Date(); //更新时间

    @ExcelProperty(value = "额定电流",index = 21)
    private Integer rateElec; //额定电流

    @ExcelProperty(value = "额定电压",index = 22)
    private Integer rateVoltage;//额定电压

    @ExcelProperty(value = "额定功率",index = 23)
    private Integer ratePower; //额定功率

    @ExcelIgnore
    private String pileStatus; //桩状态


    public String getPileNo() {
        return pileNo;
    }

    public void setPileNo(String pileNo) {
        this.pileNo = pileNo;
    }

    public String getVoltage() {
        return voltage;
    }

    public void setVoltage(String voltage) {
        this.voltage = voltage;
    }

    public String getElec() {
        return elec;
    }



    public void setElec(String elec) {
        this.elec = elec;
    }

    public String getChargePower() {
        return chargePower;
    }

    public void setChargePower(String chargePower) {
        this.chargePower = chargePower;
    }

    public String getDemandElec() {
        return demandElec;
    }

    public void setDemandElec(String demandElec) {
        this.demandElec = demandElec;
    }

    public String getDemandVoltage() {
        return demandVoltage;
    }

    public void setDemandVoltage(String demandVoltage) {
        this.demandVoltage = demandVoltage;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public String getBmsTemperature() {
        return bmsTemperature;
    }

    public void setBmsTemperature(String bmsTemperature) {
        this.bmsTemperature = bmsTemperature;
    }

    public BigDecimal getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(BigDecimal totalMoney) {
        this.totalMoney = totalMoney;
    }

    public String getOccupyTime() {
        return occupyTime;
    }

    public void setOccupyTime(String occupyTime) {
        this.occupyTime = occupyTime;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public Date getOrderUpdateTime() {
        return orderUpdateTime;
    }

    public void setOrderUpdateTime(Date orderUpdateTime) {
        this.orderUpdateTime = orderUpdateTime;
    }

    public Integer getRateElec() {
        return rateElec;
    }

    public void setRateElec(Integer rateElec) {
        this.rateElec = rateElec;
    }

    public Integer getRateVoltage() {
        return rateVoltage;
    }

    public void setRateVoltage(Integer rateVoltage) {
        this.rateVoltage = rateVoltage;
    }

    public Integer getRatePower() {
        return ratePower;
    }

    public void setRatePower(Integer ratePower) {
        this.ratePower = ratePower;
    }

    public String getPileStatus() {
        return pileStatus;
    }

    public void setPileStatus(String pileStatus) {
        this.pileStatus = pileStatus;
    }
}
